package stylistcrm.core.services.user.requisition;

/**
 * Created by yanwc on 2016/9/28.
 */
public enum EnumRequisitionState {
    WaittingCheck(1,"待审核"),
    Reject(2,"拒绝"),
    Pass(3,"通过");
    private Integer value;
    private String name;
    EnumRequisitionState(int value, String name){
        this.value = value;
        this.name=name;
    }

    public Integer getValue(){
        return this.value;
    }

    public String getName(){
        return this.name;
    }

    public static EnumRequisitionState getEnum(Integer code) {

        for (EnumRequisitionState enumValue : EnumRequisitionState.values()) {
            if (enumValue.getValue().equals(code))
                return enumValue;
        }

        return null;
    }
}
